#include "regexp.h"

int main(int, char *[]);

int
main(int argc, char *argv[])
{

   std::string pattern = "((\\d{1,3}\\.){3}\\d{1,3})";
   std::string address = "my ip address is 172.29.17.5";

   RegExp regex;
   regex.compile(pattern);
   std::cout << regex.search(address) << std::endl;

   return 0;
}
